<?php

/**
 * File Description
 * 
 * Kao: PHP Web Framework <http://kao.byhuy.com/>.
 * Copyright 2008, Huy Nguyen <http://www.byhuy.com/>.
 * 
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 * 
 */

/**
 * Static class Kao.
 *
 * This is the foundation class of Kao framework.
 * This containts system configuration that used in file loading, versioning ...
 */

final class Kao
{
    
    /**
     * Version
     */
    const VERSION        = '0.1';
    
    /**
     * The list of component types that Kao supports
     */
    const COMP_VENDOR    = 'vendor';
    const COMP_FORM      = 'form';
    const COMP_HELPER    = 'helper';
    const COMP_RECORD    = 'record';
    const COMP_VALIDATOR = 'validator';
    const COMP_DAO       = 'dao';
    
    /**
     * Path to common directory.
     * This directory contains common component that can be used by any applications.
     */
    //protected static $_commonPath = null;
    
    /**
     * Path to applications directory.
     * This directory contains application files.
     */
    //protected static $_applicationsPath = null;
    
    
    /**
     * Component directory name
     * 
     * Define the list of component paths
     * 'component_type_name' => 'dir_name';
     */
    public static $componentDirs = array (
        self::COMP_VENDOR    => 'vendors', 
        self::COMP_FORM      => 'forms',
        self::COMP_HELPER    => 'helpers',
        self::COMP_RECORD    => 'records',
        self::COMP_VALIDATOR => 'validators',
        self::COMP_DAO       => 'daos'
    );
    
    /**
     * The private constuctor
     * 
     * Make sure no one can get an instance of the class
     */
    private function __construct()
    {
            
    }
    
}
